﻿using FluentNHibernate.Mapping;

namespace TaskKernel.Domain.Nhibernate.Mappings
{
    public class ParticipantMap : ClassMap<Participant>
    {
        public ParticipantMap()
        {
            Table("task_Participants");
            Id(x => x.UID, "GID").GeneratedBy.GuidNative();
            References(x => x.Login, "AccountGID");
            References(x => x.Owner, "OwnerGID");
            References(x => x.Task, "TaskGID");
        }
    }
}